<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui">
	<ui:composition template="/templates/masterLayout.xhtml">
		<ui:define name="content">
			<h:form id="operatorProfileListFormId">
				<p:dataTable id="operatorProfileDataTableId" value="#{operatorProfileView.dataModel}"
					selection="#{operatorProfileView.selectedEntities}" paginator="true" var="entity" rows="10"
					paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
					lazy="true" paginatorPosition="bottom">
					<p:ajax event="rowDblselect" listener="#{operatorProfileView.editAction}" partialSubmit="true"
						oncomplete="operatorProfileDialog.show()" update=":operatorProfileDialogId" />
					<f:facet name="header">
						<p:commandButton icon="ui-icon-plus" value="Tạo mới" action="#{operatorProfileView.newAction}"
							actionListener="#{operatorProfileView.reset}" update=":operatorProfileDialogId"
							oncomplete="operatorProfileDialog.show()" style="float:left" />
						<div style="clear: both;" />
					</f:facet>

					<p:column selectionMode="multiple" style="width:1%" />

					<p:column headerText="Mã số">
						<h:outputText value="#{entity.code}" />
					</p:column>
					<p:column headerText="Tên">
						<h:outputText value="#{entity.name}" />
					</p:column>
					<p:column headerText="Chi nhánh">
						<h:outputText value="#{entity.chiNhanh.name}" />
					</p:column>
					<p:column headerText="Trạng thái">
						<h:outputText value="#{entity.active}" />
					</p:column>
					<f:facet name="footer">
					</f:facet>
				</p:dataTable>
			</h:form>

			<ui:include src="operatorProfileDetails.xhtml" />
		</ui:define>
	</ui:composition>


</ui:composition>